package org.pfc.porlapatilla.model;

/**
 * This class represents an user or product address.
 * 
 * @author juan_antonio
 * 
 */
public class Address {

    /**
     * The address
     */
    private String address;
    
    /**
     * The locality
     */
    private String locality;
    
    /**
     * The Zip code
     */
    private String zipCode;
    
    /**
     * The location coordinates
     */
    private double[] location;
    
    public Address() {}
    
    public Address(String address, String locality, String zipCode, double[] location) {
	this.address = address;
	this.locality = locality;
	this.zipCode = zipCode;
	this.location = location;
    }

    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the locality
     */
    public String getLocality() {
        return locality;
    }

    /**
     * @param locality the locality to set
     */
    public void setLocality(String locality) {
        this.locality = locality;
    }

    /**
     * @return the zipCode
     */
    public String getZipCode() {
        return zipCode;
    }

    /**
     * @param zipCode the zipCode to set
     */
    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    /**
     * @return the location
     */
    public double[] getLocation() {
        return location;
    }

    /**
     * @param location the location to set
     */
    public void setLocation(double[] location) {
        this.location = location;
    }

}
